package homework_06.home_05;

public class Person {
    /*定义一个人类Person：定义一个方法sayHello()，
    可以向对方发出问候语“hello,my name is XXX” ，
    有三个属性：名字、身高、体重 。*/
    String name;
    int height;
    int weight;
    public Person(String name, int height, int weight) {
        this.name = name;
        this.height = height;
        this.weight = weight;
    }
    public Person(){}
    public void sayHello(){
        System.out.println("hello,my name is "+name);
    }
}
